package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc RightCycleDto
 * @使用场景
 */
@Data
public class RightCycleDto extends BaseDto implements Serializable {

  /**
   * 周期ID
   */
  @ApiModelProperty("周期ID")
  private String cycleId;

  /**
   * 周期类型标识
   */
  @ApiModelProperty("周期类型标识")
  private String cycleTypeCode;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    RightCycleDto that = (RightCycleDto) o;
    return cycleId == that.cycleId && cycleTypeCode == that.cycleTypeCode;
  }

  @Override
  public int hashCode() {
    return Objects.hash(super.hashCode(), cycleId, cycleTypeCode);
  }

}
